<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<form action="<%=request.getContextPath()%>/updatedo.udo" method="post">
		<input type="hidden" name="id" value="${user.id }">
		<table style="margin:20px auto; padding: 50px; border: 1px #ccc solid; width: 400px;">
			<c:if test="${not empty requestScope.note }">
			<tr>
				<td colspan="2" style="text-align: center; color: red; font-weight: bolder;">${note }</td>
			</tr>
			</c:if>	
			<tr>
				<td style="text-align: right;">用户名：</td>
				<td style="text-align: left;"><input type="text" name="username" value="${user.username }"></td>
			</tr>
			<tr>
				<td style="text-align: right;">用户密码：</td>
				<td style="text-align: left;"><input type="text" name="password" value="${user.password }"></td>
			</tr>
			<tr>
				<td style="text-align: right;">用户地址：</td>
				<td style="text-align: left;"><input type="text" name="address" value="${user.address }"></td>
			</tr>
			<tr>
				<td style="text-align: right;">用户电话：</td>
				<td style="text-align: left;"><input type="text" name="phoneNum" value="${user.phoneNum }"></td>
			</tr>
			<tr>
				<td colspan="2" style="text-align: center;"><input type="Submit" value="修改用户"></td>
			</tr>
		</table>
	</form>
</body>
</html>